package com.springboot.cloud.sysadmin.organization.entity.form;

import com.springboot.cloud.common.web.entity.form.BaseForm;
import com.springboot.cloud.sysadmin.organization.entity.po.User;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * Created by ZengJian on 2021/2/3 0003 上午 9:22
 */
@ApiModel
@Data
public class ResetMobilePwdForm extends BaseForm<User> {


    @ApiModelProperty(value = "手机号")
    @NotBlank(message = "手机号不能为空")
    private String mobile;

    @ApiModelProperty(value = "时间")
    @NotBlank(message = "时间不能为空")
    private String time;

    @ApiModelProperty(value = "密码")
    @Length(min = 8, max = 20, message = "密码长度在8到20个字符")
    @NotBlank(message = "密码不能为空")
    private String password = "123456789";
}
